package DBModule;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.Iterator;

import Test.Exception.FactoryException;

public interface DBQuerier<T> {
	/**
	 * 查询操作
	 * @param conn				连接
	 * @param keys				键
	 * @return					查询结果
	 * @throws SQLException		SQL异常
	 * @throws IOException		IO异常，构造流对象出错
	 * @throws FactoryException	构造对象出错
	 */
	Collection<T> query(Connection conn, Object... keys) throws SQLException, IOException, FactoryException;
}
